package com.woniuxy.mail.rabbit_demo.service;

import com.study.util.ResponseResult;
import com.study.vo.CourseInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("service-edu")
@Component
public interface CourseService {

    @PutMapping("/edu/course/updateBuyCount/{id}")
    public ResponseResult<Void> updateBuyCount(@PathVariable("id") String id);

    @PutMapping("/edu/course/update-course-info")
    public ResponseResult updateById(@RequestBody CourseInfoVO courseInfoVO);


    @GetMapping("/edu/course/getById/{id}")
    //paththVaribale后面要加id
    public ResponseResult<CourseInfoVO> getById(@PathVariable("id")  String id);



}
